<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<title>病房管理系统</title>
	<link th:replace="~{common::head}">
	<style>
		pre{width: 100%; white-space:pre-wrap;word-wrap:break-word;overflow: auto;word-wrap:  break-word;table-layout:  fixed;}
	</style>
</head>

<body class="">
<div class="wrapper">
	<!--侧边栏-->
	<div th:insert="~{common::sidebar(active='information.html')}"></div>
	<!--主面板-->
	<div class="main-panel">
		<!-- Navbar导航栏 -->
		<nav th:replace="~{common::navbar}"></nav>
		<!-- End Navbar -->
		<!--搜索栏-->
		<div class="panel-header">
			<form id="search_form" th:action="@{/student/news/search}">
				<div class="header text-center">
					<h2 class="title">考试资讯</h2>
					<div class="input-group no-border col-sm-4 offset-4">
						<input type="text" name="search" class="form-control" th:placeholder="${msg==null?'标题或者正文...':msg}">
						<span class="input-group-addon">
                            <i class="now-ui-icons ui-1_zoom-bold" onclick="$('#search_form').submit()"></i>
                        </span>
					</div>
					<p class="category">为您提供实时的四六级考试资讯。</p>
				</div>
			</form>
		</div>
		<div class="content row mb-3" style="width: 100%">

			<div class="col-lg-6 col-md-6" th:each="info,index:${news}">
					<div class="card card-chart">
						<div class="card-header">
							<a th:href="'http://'+${info.getNewsHref()}" style="color: #000000">
								<h4 class="card-title" th:text="${info.getNewsTitle()}">恭喜某考生喜提英语四级65536分</h4>
							</a>
						</div>
						<div class="card-body" >
							<a th:href="'http://'+${info.getNewsHref()}" style="color: #000000">
								<div class="card-img">
									<img th:src="${info.getNewsPicture()}"  style="height: 12.5rem;  width: 100%;object-fit: cover;">
								</div>
								<div class="card-text mt-2" style="height: 2.5rem" >
									<pre style="height: 2.5rem" th:text="${info.getNewsInfo()}">震惊！河南一考生居然在英语四级考出了65536的高分，竟被系统误判为-1分，究竟是为什么呢？来和小编一探究竟吧！</pre>
								</div>
							</a>
						</div>
						<div class="card-footer" style="margin-top: -1rem;">
							<div class="stats">
								<i class="now-ui-icons ui-2_time-alarm" ></i>[[${#dates.format(info.getCreateTime(),'yyyy/MM/dd')}]]
							</div>
						</div>
					</div>
			</div>



		</div>
		<div th:insert="~{common::footer}"></div>
	</div>
</div>
<!--底部footer-->
<footer th:replace="~{common::footer}"></footer>
<!--通用footerJs-->
<script th:replace="~{common::footerJs}"></script>
</body>



</html>